<?php
/**
 * Created by PhpStorm.
 * User: xy
 * Date: 2017/1/25
 * Time: 下午8:02
 */

include('function.php');

header('Content-Type: image/jpeg');
$object=$_GET['object'].' :';
$name=$_GET['name'];
$text='      '.$_GET['text'];
$im = imagecreatefromjpeg('background/背景10.jpg');
$black = imagecolorallocate($im, 0, 0, 0);
$font = './arial.ttf';
imagettftext($im, 16, 0, 50, 400, $black, $font, $object);
$temp = array("color" => array(0, 0, 0), "fontsize" =>16, "width" => 507, "left" => 50, "top" => 450, "hang_size" => 30);
$high=draw_txt_to($im,$temp,$text,true);
imagettftext($im, 16, 0, 450, 550+$high, $black, $font, $name);
imagejpeg($im);
imagedestroy($im);


?>